/*
    入口JS
*/
import Vue from 'vue'
import { Button } from 'mint-ui'
import App from './App.vue'
import fastclick from 'fastclick'
import router from './router'
import store from './store'
import VueLazyload from 'vue-lazyload'

import './mock/mockServer'  //加载mockServer
import loading from './common/images/loading.gif'
import './filters'

//注册mint-ui全局组件
Vue.component(Button.name, Button)
Vue.use(VueLazyload, { // 内部自定义一个指令lazy
    loading
})

fastclick.attach(document.body)



new Vue ({
    el:'#app',
    render:c => c(App),
    router,
    store
})